
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[gspSiteContent_INSERT]
(
@parentSiteContentId AS int = null,
@title AS nvarchar(150) = null,
@content AS nvarchar(MAX) = null,
@contentTypeCode AS int = null,
@isDeleted AS bit = null,
@isVisible AS bit = null,
@createDate AS datetime = null,
@lastModifiedDate AS datetime = null
)
AS

INSERT INTO
  [dbo].[SiteContent]
(
  [ParentSiteContentId],
  [Title],
  [Content],
  [ContentTypeCode],
  [IsDeleted],
  [IsVisible],
  [CreateDate],
  [LastModifiedDate]
)
VALUES
(
  @parentSiteContentId,
  @title,
  @content,
  @contentTypeCode,
  @isDeleted,
  @isVisible,
  @createDate,
  @lastModifiedDate
)

SELECT SCOPE_IDENTITY()

GO
